import { IFormDetailContainerController } from '@ibiz-template/runtime';
import { IDEFormTabPage } from '@ibiz/model-core';
import { FormDetailController } from '../form-detail';
import { FormTabPageState } from './form-tab-page.state';

/**
 * 表单分页部件分页控制器
 *
 * @author lxm
 * @date 2022-09-04 15:09:52
 * @export
 * @class FormTabPageController
 * @extends {FormDetailController}
 */
export class FormTabPageController
  extends FormDetailController<IDEFormTabPage>
  implements IFormDetailContainerController
{
  declare state: FormTabPageState;

  protected createState(): FormTabPageState {
    return new FormTabPageState(this.parent?.state);
  }
}
